﻿using RandomStudent.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RandomStudent.TestData
{
    public class MenuData
    {
        public static MenuList menu = new MenuList();
        static MenuData()
        {
            //file
            MenuGroup fileMenuGroup = new MenuGroup() { GroupId = 1, Name = "", Text = "文件" };
            MenuItem menu1 = new MenuItem() { MenuId = 11, Name = "", Text = "导入学生名单" };
            MenuItem menu2 = new MenuItem() { MenuId = 12, Name = "", Text = "退出" };
            fileMenuGroup.ItemList.Add(menu1);
            fileMenuGroup.ItemList.Add(menu2);
            fileMenuGroup.GroupList.Add(fileMenuGroup);

            //
            MenuGroup actMenuGroup = new MenuGroup() { GroupId = 2, Name = "", Text = "活动" };
            MenuItem menu3 = new MenuItem() { MenuId = 21, Name = "", Text = "选的就是你" };
            MenuItem menu4 = new MenuItem() { MenuId = 22, Name = "", Text = "自定义选人" };
            actMenuGroup.ItemList.Add(menu3);
            actMenuGroup.ItemList.Add(menu4);
            fileMenuGroup.GroupList.Add(actMenuGroup);

            //            
            MenuGroup manageMenuGroup = new MenuGroup() { GroupId = 3, Name = "", Text = "管理" };
            MenuItem menu5 = new MenuItem() { MenuId = 31, Name = "", Text = "学生管理" };
            MenuItem menu6 = new MenuItem() { MenuId = 32, Name = "", Text = "分数登记" };
            actMenuGroup.ItemList.Add(menu5);
            actMenuGroup.ItemList.Add(menu6);
            fileMenuGroup.GroupList.Add(actMenuGroup);
            //
            MenuGroup helpMenuGroup = new MenuGroup() { GroupId = 4, Name = "", Text = "帮助" };
            MenuItem menu7 = new MenuItem() { MenuId = 41, Name = "", Text = "学生管理" };
            MenuItem menu8 = new MenuItem() { MenuId = 42, Name = "", Text = "分数登记" };
            actMenuGroup.ItemList.Add(menu5);
            actMenuGroup.ItemList.Add(menu6);
            fileMenuGroup.GroupList.Add(helpMenuGroup);
        }
    }
}
